!function (c, C) {
  var a,
      w = document,
      o = window,
      s = w.documentElement,
      f = document.createElement("style");

  function d() {
    var a = s.getBoundingClientRect().width;
    C = C || 540;
    a > C && (a = C);
    var t = a * 100 / c;
    v() && (t = 100);
    f.innerHTML = "html{font-size:" + t + "px;}";
  }

  function v() {
    for (var a = navigator.userAgent, e = ["Android", "iPhone", "SymbianOS", "Windows Phone", "iPad", "iPod"], y = !0, t = 0; t < e.length; t++) if (a.indexOf(e[t]) > 0) {
      y = !1;
      break;
    }

    return y;
  }

  function l() {
    v() ? w.body.style.fontFamily = " Microsoft YaHei, Arial, Helvetica, sans-serif" : w.body.style.fontFamily = " PingFangSC-Regular, Helvetica, 'Droid Sans', Arial, sans-serif";
  }

  if (s.firstElementChild) s.firstElementChild.appendChild(f);else {
    var m = w.createElement("div");
    m.appendChild(f);
    w.write(m.innerHTML);
    m = null;
  }
  d();
  o.addEventListener("resize", function () {
    clearTimeout(a);
    a = setTimeout(d, 300);
  }, !1);
  o.addEventListener("pageshow", function (c) {
    c.persisted && (clearTimeout(a), a = setTimeout(d, 300));
  }, !1);
  w.readyState === "complete" ? (w.body.style.fontSize = "100px", l()) : w.addEventListener("DOMContentLoaded", function (c) {
    w.body.style.fontSize = "100px";
    l();
  }, !1);
}(375, 750);